<div ng-controller="z-attendanceLook-c" z-loading is-loading="viewModel.isLoading">
	<div viewstack class="carousel slide" data-ride="carousel">
		<div class="carousel-inner" role="listbox">
			<div class="item active">
				<div class="row">
                    <div class="col-lg-12 heading">
                        <ul id="crumb" class="breadcrumb">
	                       <li>
		                        <i class="im-home"></i>
		                        <a href="index.html">首页</a>
	                        </li>
	                        <li ng-repeat="menu in viewModel.menuList">
	                        	<i class="{{menu.icons}}" ng-if="$index+1!=viewModel.menuList.length"></i>
	                        	<i class="en-arrow-right7" ng-if="$index+1==viewModel.menuList.length"></i>
	                        	{{menu.label}}
	                        </li>
                        </ul>
                    </div>
                </div>
	                <div class="panel-body">
	                    <form class="form-horizontal group-border hover-stripped" role="form">
	                        <div class="row">
	                            <div class="col-lg-2 col-md-1">
									
	                            </div>
	                        </div>
	                    </form>
	                </div>
                </div>
                <div class="outlet">
	                <div class="panel-body">
	                    <form class="form-horizontal group-border hover-stripped" role="form" name="form">
	                        <div class="row">
	                            <!-- 检索条件 -->
								<div class="col-xs-12 col-sm-10 col-md-11 form-box">	
								    <div class="col-sm-6 col-md-4 col-lg-3 form-item">
										<div class="col-sm-5 col-md-5 form-title">公司：</div>
										<div class="col-sm-7 col-md-7 form-input">
											<div class="input-group" style="width:272%;">
												<select id="aLCorporation" multiple="multiple" class="form-control" ng-model="viewModel.corporationList" tabIndex="1">
				                                </select>	   
											</div>
										</div>
									</div>
									<div class="col-sm-6 col-md-4 col-lg-3 form-item">
									</div>
									<div class="col-sm-6 col-md-4 col-lg-3 form-item">
										<div class="col-sm-5 col-md-5 form-title">部门：</div>
										<div class="col-sm-7 col-md-7 form-input">
											<div class="input-group">
												<!-- <input name="department" 
													   ng-model="viewModel.departmentName" 
													   type="text" 
													   placeholder="部门编码、部门名称" 
													   maxLength="60"
													   class="form-control"
													   tabIndex="2"> -->
												<select id="aLDepartmentName" multiple="multiple" class="form-control" ng-model="viewModel.departmentList" tabIndex="2">
				                                </select>	 
											</div>
										</div>
									</div>
									<div class="col-sm-6 col-md-4 col-lg-3 form-item">
										<div class="col-sm-5 col-md-5 form-title">员工：</div>
										<div class="col-sm-7 col-md-7 form-input">
											<div class="input-group">
												<textarea ng-model="viewModel.employeeNo" placeholder="员工号、中文名称、英文名称" class="form-control elastic __web-inspector-hide-shortcut__" rows="1"></textarea>
											</div>
										</div>
									</div>
		                         </div>
		                         <div class="col-xs-12 col-sm-10 col-md-11 form-box">
		                            <div class="col-sm-6 col-md-4 col-lg-3 form-item">
										<div class="col-sm-5 col-md-5 form-title">员工级别：</div>
										<div class="col-sm-7 col-md-7 form-input">
											<div class="input-group">
				                                <select id="aLlevel" multiple="multiple" class="form-control" ng-model="viewModel.employeeLevelList" tabIndex="4">
				                                    <option value="13">13</option>
				                                    <option value="14">14</option>
				                                    <option value="15">15</option>
				                                    <option value="16">16</option>
				                                    <option value="17">17</option>
				                                    <option value="18">18</option>
				                                    <option value="19">19</option>
				                                    <option value="20">20</option>
				                                    <option value="21">21</option>
				                                    <option value="22">22</option>
				                                    <option value="23">23</option>
				                                    <option value="24">24</option>
				                                    <option value="25">25</option>
				                                    <option value="26">26</option>
				                                    <option value="27">27</option>
				                                    <option value="28">28</option>
				                                    <option value="29">29</option>
				                                    <option value="30">30</option>
				                                </select>
											</div>
										</div>
									</div>	
		                            <div class="col-sm-6 col-md-4 col-lg-3 form-item">
											<div class="col-sm-5 col-md-5 form-title">考勤状态：</div>
											<div class="col-sm-7 col-md-7 form-input">
												<div class="input-group" ng-class="{ 'has-error' : form.attendanceState.$invalid && !form.attendanceState.$pristine }">
													<select id="aLattendanceState" class="form-control" ng-model="viewModel.attendanceStateList" tabIndex="5" multiple="multiple">
		                                            </select>
												</div>
											</div>
									</div>
									<div class="col-sm-6 col-md-4 col-lg-3 form-item">
											<div class="col-sm-5 col-md-5 form-title">补签状态：</div>
											<div class="col-sm-7 col-md-7 form-input">
												<div class="input-group" ng-class="{ 'has-error' : form.attendanceState.$invalid && !form.attendanceState.$pristine }">
													<select id="isRepaired" class="form-control" ng-model="viewModel.isRepaired" tabIndex="6">
		                                                <option value=""></option>
		                                                <option ng-repeat="dictionary in viewModel.isRepairedData" value="{{dictionary.dicCd}}">{{dictionary.dicName}}</option>
		                                            </select>
												</div>
											</div>
									</div>
									<div class="col-sm-6 col-md-4 col-lg-3 form-item">
											<div class="col-sm-5 col-md-5 form-title">审核状态：</div>
											<div class="col-sm-7 col-md-7 form-input">
												<div class="input-group" ng-class="{ 'has-error' : form.attendanceState.$invalid && !form.attendanceState.$pristine }">
													<select id="isApprovaled" class="form-control" ng-model="viewModel.isApprovaled" tabIndex="7">
					                                    <option value=""></option>
					                                    <option ng-repeat="dictionary in viewModel.isApprovaledData" value="{{dictionary.dicCd}}">{{dictionary.dicName}}</option>
					                                </select>
												</div>
											</div>
									</div>
		                         </div>
		                         
		                         <div class="col-xs-12 col-sm-10 col-md-11 form-box">
		                         <div class="col-sm-6 col-md-4 col-lg-3 form-item">
											<div class="col-sm-5 col-md-5 form-title">签到日期：</div>
											<div class="col-sm-7 col-md-7 form-input">
												<div class="input-group" ng-class="{ 'has-error' : form.attendanceStratDate.$invalid && !form.attendanceStratDate.$pristine }">
													<input name="attendanceStratDate" 
														   ng-model="viewModel.attendanceStratDate" 
														   class="form-control datetime-picker" 
														   type="text"
														   autofocus="autofocus" 
														   maxLength="10"
														   z-datepicker-popup="{{viewModel.format}}"
														   ng-click="viewModel.startDateOpen($event)"
														   is-open="viewModel.startDateOpened"
														   datepicker-options="viewModel.dateOptions"
													       close-text="Close"
													       required
													       readonly
													       tabIndex="8">
													<span class="input-group-addon cursorPointer" ng-click="viewModel.startDateOpen($event)"><i class="fa-calendar"></i></span>
												</div>
											</div>
									</div>
		                            <div class="col-sm-6 col-md-4 col-lg-3 form-item">
											<div class="col-sm-5 col-md-5 form-title">至：</div>
											<div class="col-sm-7 col-md-7 form-input">
												<div class="input-group" ng-class="{ 'has-error' : form.attendanceEndDate.$invalid && !form.attendanceEndDate.$pristine }">
													<input name="attendanceEndDate" 
														   ng-model="viewModel.attendanceEndDate" 
														   class="form-control datetime-picker" 
														   type="text" 
														   autofocus="autofocus" 
														   ng-click="viewModel.endDateOpen($event)"
														   maxLength="10"
														   z-datepicker-popup="{{viewModel.format}}"
														   is-open="viewModel.endDateOpened" 
														   datepicker-options="viewModel.dateOptions"
													       close-text="Close"
													       required
													       readonly
													       tabIndex="9">
													<span class="input-group-addon cursorPointer" ng-click="viewModel.endDateOpen($event)"><i class="fa-calendar"></i></span>
												</div>
											</div>
									</div>							
									<div class="col-sm-6 col-md-4 col-lg-3 form-item">
										<div class="col-sm-7 col-md-7 form-input-left">
											<button type="button" class="btn btn-success" ng-click="viewModel.validForm(form.$valid)" tabIndex="10">搜索</button>
											<button type="button" class="btn btn-success" ng-click="viewModel.exportData()" tabIndex="1">导出</button>
										</div>
									</div>
		                         </div>
	                        </div>
	                    </form>
	                </div>
                </div>
				<div class="container-fluid">
					<div class="row">
						<!-- <table class="table table-striped  table-bordered table-hover"> -->
						<table class="table table-striped table-bordered" cellspacing="0" width="100%">
							<thead>
								<tr>
									<th>员工号</th>
									<th>中文名称</th>
									<th>英文名称</th>
									<th width="10%" ng-click="viewModel.order()" style="cursor:pointer;">
										签到日期
										<i ng-class="{true:'en-arrow-down3 ',false:'en-arrow-up3' }[viewModel.descSort]"></i>
									</th>
									<th>上班签到</th>
									<th>末班签退</th>
									<th width="6%">考勤状态</th>
									<th width="6%">补签状态</th>
									<th width="6%">审批状态</th>
									<th width="25%">备注</th>
								</tr>
							</thead>
							<tbody>
								<tr ng-repeat="attendance in viewModel.dataList">
									<td>{{attendance.employeeNo}}</td>
									<td>{{attendance.chineseName}}</td>
									<td>{{attendance.englishName}}</td>
									<td>{{attendance.attendanceDate | date:'yyyy/MM/dd'}}</td>
									<td>{{attendance.originalStartTime}}
										<span ng-if="attendance.startTime!=null" class="green">
											<br ng-if="attendance.originalStartTime!=null">
										({{attendance.startTime}})
										</span>
										<span ng-if="attendance.specialStartTime!=null" class="red">
											<br ng-if="attendance.originalStartTime!=null||attendance.startTime!=null">
										({{attendance.specialStartTime}})
										</span>
									</td>
									<td>{{attendance.originalEndTime}}
										<span ng-if="attendance.endTime!=null" class="green">
											<br ng-if="attendance.originalEndTime!=null">
										({{attendance.endTime}})
										</span>
										<span ng-if="attendance.specialEndTime!=null" class="red">
											<br ng-if="attendance.originalEndTime!=null||attendance.endTime!=null">
										({{attendance.specialEndTime}})
										</span>
									</td>
									<td>
									    <span ng-if="attendance.attendanceStateType==true">
										   <a ng-click="viewModel.selectUser(attendance) ">{{attendance.attendanceStateName}}
										   </a>
										</span>
										<span ng-if="attendance.attendanceStateType==false">
										   {{attendance.attendanceStateName}}
										</span>  
									<td>
										<span ng-if="attendance.isRepaired!=0">{{attendance.isRepairedName}}</span>
									</td>
									<td>
										<span ng-if="attendance.isApprovaled!=0">{{attendance.isApprovaledName}}</span>
									</td>
									<td>{{attendance.description}}</td>
								</tr>
							</tbody>
						</table>
					</div>
					<div class="row">
						<div z-Pagination total-Data='viewModel.totalData'
							per-Page='viewModel.perPage'
							current-Page='viewModel.rowCount'
							on-Click="viewModel.bindData()"
							on-Change-Per-Page="viewModel.bindData()"></div>
					</div>
				</div>
			</div>
		</div>
		<z-Dialog 
			have-Error-Class="viewModel.checkGlobal()" 
			load-Url="static/html/attendanceLook/attendanceSelect.html" 
			title="{{viewModel.title}}" 
			show="viewModel.showSelect"
			cancel-fn="viewModel.unLoadSelect()"
			body-width="100"
			body-Height="300"></z-Dialog>
	</div>